﻿/*********************************/
/*        KAMIL WOŁCZYK          */
/*           CSS 3.0             */
/*      ALL RIGHTS RESERVED      */
/*********************************/


/***************************************** MAIN STYLE *****************************************/
body
{
    background: #7f0000 url('images/background.jpg') no-repeat top center fixed;
    margin: 0 auto;
    padding: 0 auto;
    text-align: center;
    position: relative;
    font-family: Arial,Verdana, Helvetica,sans-serif;
    font-size: 11px;
    line-height: 20px;
}

h1, h2, h3, h4
{
    display: block;
    border-bottom: solid 1px #7f0000;
    color: #7f0000;
    max-width: 400px;
    text-align: center;
    padding-bottom: 4px;
}

h1
{
    font-size: 16px;
}
h2
{
    font-size: 14px;
}
h3
{
    font-size: 12px;
}
h4
{
    font-size: 11px;
    border: none;
}

a, a:visited
{
    text-decoration: none;
}

a:hover
{
    text-decoration: underline;
    color: #FEA813;
}

/***************************************** LAYOUT *****************************************/

div.topBar
{
    height: 46px;
    width: 100%;
    background: url('images/topBarBackground.png') repeat-x;
    display: block;
    position: fixed;
    top: 0px;
    z-index: 3;
    overflow: hidden;
    line-height: 15px;
}

div.page
{
    margin: 0 auto;
    padding: 0 23px;
    width: 1100px;
    background: url('images/contentBackground.png') repeat-y;
    position: relative;
    top: 30px;
    z-index: 1;
    text-align: left;
    overflow: hidden;
}

div.banner
{
    padding: 10px;
    width: 1080px;
    height: 120px;
    background: white;
    text-align: left;
    line-height: 15px;
}

img#logo
{
    margin: 0 60px;
}

div.statisticBox
{
    margin: 10px 0px;
    float: right;
    height: 100px;
    width: 430px;
    overflow: hidden;
    color: gray;
    font-weight: bold;
}

div.statistic
{
    float: left;
    display: block;
    width: 180px;
    text-align: center;
    padding: 10px;
}

div.statisticBox div#users
{
    background: url('images/icons/user.png') left center no-repeat;
}
div.statisticBox div#movies
{
    background: url('images/icons/movie.png') left center no-repeat;
}
div.statisticBox div#times
{
    background: url('images/icons/time.png') left center no-repeat;
}
div.statisticBox div#rentals
{
    background: url('images/icons/rental.png') left center no-repeat;
}

div.menu
{
    height: 46px;
    width: 1100px;
    background: url('images/menuBarBackground_active.png') repeat-x;
    font: bold small-caps 15px/20px trajan;
    position: relative;
    z-index: 10;
}

div.transparentContent, div.opaqueContent
{
    overflow: hidden;
    display: block;
    width: 1060px;
    padding: 20px;
}

div.transparentContent
{
    background: url('images/contentTransparentBottom.png') repeat-x bottom;
}

div.opaqueContent
{
    padding: 0px;
    padding-top: 10px;
    width: 1100px;
    background-color: white;
    margin-top: -10px;
}

div.footer
{
    border-top: solid 2px gray;
    width: 1080px;
    background-color: lightgray;
    padding: 10px;
    padding-bottom: 10px;
    color: gray;
    text-align: center;
}

a.imgUrl
{
    border: none;
}

/***************************************** IMAGES *****************************************/

img.cover
{
    padding: 8px 15px 22px 15px;
    width: 140px;
    height: 200px;
    background: url('images/imageBackground.png') no-repeat;
    display: block;
    float: left;
    margin: 0px 3px;
}

/***************************************** MAIN MENU *****************************************/

ul.mainMenu, ul.mainMenu li
{
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.mainMenu li
{
    display: inline;
    white-space: nowrap;
    float: left;
}

ul.mainMenu a:link, ul.mainMenu a:visited
{
    color: Silver;
    display: block;
    padding: 7px 28px;
    text-align: center;
    text-decoration: none;
    min-width: 100px;
}

ul.mainMenu a:hover
{
    background: url('images/menuBarBackground_hover.png') no-repeat center center;
}

ul.footerMenu, ul.footerMenu li
{
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.footerMenu li
{
    display: inline;
    white-space: nowrap;
    float: top;
}

ul.footerMenu a:link, ul.footerMenu a:visited
{
    color: #A60000;
    font-weight: bold;
    padding: 2px 15px;
    text-align: center;
    text-decoration: none;
    border-right: 1px outset white;
}

ul.footerMenu a:hover
{
    color: #FEA813;
}

ul.footerMenu a#last:link
{
    border: none;
}


/***************************************** TOP BAR *****************************************/

div.txtAccountInformationBox
{
    color: Silver;
    width: 1050px;
    margin: 0 auto;
    padding: 3px;
    height: 20px;
    overflow: hidden;
}

div.topBar div.txtAccountType
{
    text-align: left;
    color: Silver;
    width: 300px;
    margin: 0 auto;
    padding: 4px;
    padding-left: 30px;
    float: left;
    background: url('images/icons/starGreen.png') no-repeat;
}

div.topBar div#blueStar
{
    background: url('images/icons/starBlue.png') left center no-repeat;
}
div.topBar div#yellowStar
{
    background: url('images/icons/starYellow.png') left center no-repeat;
}
div.topBar div#greenStar
{
    background: url('images/icons/starGreen.png') left center no-repeat;
}
div.topBar div#blackStar
{
    background: url('images/icons/starBlack.png') left center no-repeat;
}
div.topBar div#silverStar
{
    background: url('images/icons/starSilver.png') left center no-repeat;
}

div.topBarButton, div.txtAccountInformationBox a
{
    display: inline;
    float: right;
    margin: 0px 5px;
    padding: 3px 10px 3px 20px;
}
div#personInfo
{
    background: url('images/icons/registerIconSmall.png') left center no-repeat;
    border-right: solid 1px silver;
}

div.txtAccountInformationBox a
{
    color: #FEA813;
    font-weight: bold;
    text-decoration: none;
}

div.txtAccountInformationBox a:hover
{
    text-decoration: underline;
}

a#login
{
    background: url('images/icons/loginIcon.png') left center no-repeat;
}
a#logout
{
    background: url('images/icons/logoutIcon.png') left center no-repeat;
}
a#personCard
{
    background: url('images/icons/profileIcon.png') left center no-repeat;
    border-right: solid 1px silver;
}

/***************************************** CONTENT *****************************************/

div.opaqueContent a:link, div.opaqueContent a:hover
{
    font-weight: bold;
    color: Blue;
}

div.opaqueContent a:hover
{
    color: #FEA813;
}

div.leftPanel
{
    overflow: visible;
    height: 300px;
    width: 27%;
    float: left;
    padding: 15px;
    padding-top: 25px;
    padding-bottom: 30px;
}

div.leftPanel div.scrool
{
    position: fixed;
    text-align: center;
    margin: auto;
}

div.rightContent
{
    float: right;
    width: 65%;
    padding: 25px;
    text-align: justify;
}

div.column
{
    width: 30%;
    margin: 10px 12px;
    padding: 6px;
    float: left;
    text-align: justify;
}

div.half
{
    width: 45%;
    margin: 0px 10px;
    padding: 6px;
    float: left;
    text-align: justify;
}

/***************************************** TABLE *****************************************/

table.list
{
    border-collapse: collapse;
    font-family: "Lucida Sans Unicode","Lucida Grande",Sans-Serif;
    font-size: 11px;
    margin: 20px;
    text-align: center;
    width: 80%;
    border-radius: 15px;
}

table.list th
{
    text-align: left;
}

table.list tr
{
    background-color: #e8edff;
}

table.list tr.odd
{
    background-color: #e8edff;
}

table.list tr:hover, table.list tr.odd:hover
{
    background-color: #99adee;
}

table.list thead tr
{
    background-color: #99adee;
}

table.list td, table.list th
{
   margin: 0px;
   padding: 5px 10px;
}

/***************************************** PAGINATION *****************************************/

div.pagesNavigation
{
    clear: both;
    text-align: center;
    margin-bottom: 10px;
}

div.pagesNavigation a
{
    border: solid 1px gray;
    padding: 4px;
    background-color: Silver;
    font-size: 12px;
    margin: 0px 2px;
}

div.pagesNavigation a.selected
{
    background-color: Yellow;
}

div.pagesNavigation a:hover, div.pagesNavigation a.selected:hover
{
    background-color: red;
}

/***************************************** MESSAGES *****************************************/

div.ResultError, div.ResultOk
{
    margin: 0 auto;
    padding: 0 40px;
    max-width: 400px;
    border-radius: 5px;
    color: White;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    background: red url('images/icons/resultError.png') 10px center no-repeat;
}

div.ResultOk
{
    background: green url('images/icons/resultOk.png') 10px center no-repeat;
}

/***************************************** HORIZONTAL MENU *****************************************/

/* Some stylesheet reset */
ul#cssmenu > ul, #cssmenu > ul ul {
	list-style: none;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
	line-height: 1;
}

/* The container */
#cssmenu > ul, #cssmenu > ul ul {
	display: block;
	position: relative;
	width: 150px;
}

	/* The list elements which contain the links */
	#cssmenu > ul li {
		display: block;
		position: relative;
		margin: 0;
		padding: 0;
	}

		/* General link styling */
		#cssmenu > ul li a {
			/* Layout */
			display: block;
			position: relative;
			margin: 0;
			border-top: 1px dotted #3a3a3a;
			border-bottom: 1px dotted #1b1b1b;
			padding: 11px 20px;
			padding-left: 50px;
			width: 150px;

			/* Typography */
			font-family: 'Yanone Kaffeesatz', Helvetica, Arial, sans-serif;
			color: #d8d8d8;
			text-decoration: none;
			text-transform: uppercase;
			text-shadow: 0 1px 1px #000;
			font-size: 11px;
			font-weight: 300;

			/* Background & effects */
			background-color: #282828;
		}
		
		#cssmenu > ul li a#horizontalMenu{background: #282828 url('images/icons/menu/small/menu.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuAdminRents{background: #282828 url('images/icons/menu/small/adminRents.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuAdminRentsNew{background: #282828 url('images/icons/menu/small/adminRentsRent.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuAdminRentsReturn{background: #282828 url('images/icons/menu/small/adminRentsReturn.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuMovies{background: #282828 url('images/icons/menu/small/adminCinema.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuMoviesData{background: #282828 url('images/icons/menu/small/adminMoviesDatabase.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuMoviesCategories{background: #282828 url('images/icons/menu/small/adminMovieCategories.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuMoviesCopies{background: #282828 url('images/icons/menu/small/adminMoviesCopies.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuCustomers{background: #282828 url('images/icons/menu/small/adminUsers.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuCustomersList{background: #282828 url('images/icons/menu/small/menu.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuCustomersAdd{background: #282828 url('images/icons/menu/small/adminUsersAddNew.png') 20px center no-repeat;}
		#cssmenu > ul li a#horizontalMenuLocalization{background: #282828 url('images/icons/menu/small/adminLocation.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuInformation{background: #282828 url('images/icons/menu/small/adminInfo.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuInformationContact{background: #282828 url('images/icons/menu/small/adminInfoContact.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuInformationRules{background: #282828 url('images/icons/menu/small/adminInfoRules.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuInformationPromotion{background: #282828 url('images/icons/menu/small/adminInfoPromotions.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuAccount{background: #282828 url('images/icons/menu/small/adminAccountSettings.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuGlobalSettings{background: #282828 url('images/icons/menu/small/settings.png') 20px center no-repeat;}

        #cssmenu > ul li a#horizontalMenuUserRentNew{background: #282828 url('images/icons/menu/small/userRentsNew.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuUserCash{background: #282828 url('images/icons/menu/small/userRentsCash.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuUserRentsHistory{background: #282828 url('images/icons/menu/small/userRentsHistory.png') 20px center no-repeat;}
        #cssmenu > ul li a#horizontalMenuUserAccountHistory{background: #282828 url('images/icons/menu/small/userAccountHistory.png') 20px center no-repeat;}

		/* Rounded corners for the first link of the menu/submenus */
		#cssmenu > ul li:first-child>a {
			border-top-left-radius: 4px;
			border-top-right-radius: 4px;
			border-top: 0;
		}

		/* Rounded corners for the last link of the menu/submenus */
		#cssmenu > ul li:last-child>a {
			border-bottom-left-radius: 4px;
			border-bottom-right-radius: 4px;
			border-bottom: 0;
		}


		/* The hover state of the menu/submenu links */
		#cssmenu > ul li>a:hover, #cssmenu > ul li:hover>a {
			color: #fff;
			text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
			background: #810302;
			background: -webkit-linear-gradient(bottom, #810302, #bb0b0a);
			background: -ms-linear-gradient(bottom, #810302, #bb0b0a); 
			background: -moz-linear-gradient(bottom, #810302, #bb0b0a);
			background: -o-linear-gradient(bottom, #810302, #bb0b0a);
			border-color: transparent;
		}

		/* The arrow indicating a submenu */
		#cssmenu > ul .has-sub>a::after {
			content: '';
			position: absolute;
			top: 16px;
			right: 10px;
			width: 0px;
			height: 0px;

			/* Creating the arrow using borders */
			border: 4px solid transparent;
			border-left: 4px solid #d8d8d8; 
		}

		/* The same arrow, but with a darker color, to create the shadow effect */
		#cssmenu > ul .has-sub>a::before {
			content: '';
			position: absolute;
			top: 17px;
			right: 10px;
			width: 0px;
			height: 0px;

			/* Creating the arrow using borders */
			border: 4px solid transparent;
			border-left: 4px solid #000;
		}

		/* Changing the color of the arrow on hover */
		#cssmenu > ul li>a:hover::after, #cssmenu > ul li:hover>a::after {
			border-left: 4px solid #fff;
		}

		#cssmenu > ul li>a:hover::before, #cssmenu > ul li:hover>a::before {
			border-left: 4px solid rgba(0, 0, 0, .3);
		}

	
		/* THE SUBMENUS */
		#cssmenu > ul ul {
			position: absolute;
			left: 220px;
			top: -9999px;
			padding-left: 5px;
			opacity: 0;
			/* The fade effect, created using an opacity transition */
			-webkit-transition: opacity .3s ease-in;
			-moz-transition: opacity .3s ease-in;
			-o-transition: opacity .3s ease-in;
			-ms-transition: opacity .3s ease-in;
		}

		/* Showing the submenu when the user is hovering the parent link */
		#cssmenu > ul li:hover>ul {
			top: 0px;
			opacity: 1;
		}